package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.Exam01.Bai1;

/**
 * Created by Sang on 07/03/2016.
 */
public class RectangleController {
    private RectangleEntity rectangleEntity;

    public RectangleController(RectangleEntity rectangleEntity) {
        this.rectangleEntity = new RectangleEntity();
    }

    public double  RecArea(RectangleEntity rectangleEntity){
        return rectangleEntity.getArea(rectangleEntity);

    }

    public double RecPerimeter(RectangleEntity rectangleEntity){
        return rectangleEntity.getPerimeter(rectangleEntity);
    }
}
